/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class RangeHood {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050001';
    }

    get categoryName() {
        return '\u62bd\u6cb9\u70df\u673a';
    }

    getAirFlowVolume(params) {
        return command({
            method: 'getAirFlowVolume',
            methodId: 'ptRSxcR1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getClean(params) {
        return command({
            method: 'getClean',
            methodId: 'pgh0uxPq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFaultAlarm(params) {
        return command({
            method: 'getFaultAlarm',
            methodId: 'pdN7VYxo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGear(params) {
        return command({
            method: 'getGear',
            methodId: 'p1vZQ3Jx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLighting(params) {
        return command({
            method: 'getLighting',
            methodId: 'pDrhgGyb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pGoxpVsG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWindPressure(params) {
        return command({
            method: 'getWindPressure',
            methodId: 'phEqY8nk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setClean(params) {
        return command({
            method: 'setClean',
            methodId: 'pZgRrS63',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGear(params) {
        return command({
            method: 'setGear',
            methodId: 'ppAX3FVS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLighting(params) {
        return command({
            method: 'setLighting',
            methodId: 'pUPQLLaV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3btkL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default RangeHood;
